﻿using Microsoft.Xna.Framework;

namespace Domain.Map
{
    public class Map
    {
        /// <summary>
        /// 地图分割成300X300块小单位[列，行]
        /// </summary>
        public static Point MapDimensions = new Point(300, 300);

        /// <summary>
        /// 地图总宽度和高度
        /// </summary>
        public static int Width
        {
            get { return MapUnit.Width * MapDimensions.X; } //值不是固定的，随着滚轮缩放MapUtil.Width会变化
        }

        public static int Height
        {
            get { return MapUnit.Height * MapDimensions.Y; }
        }
    }
}
